package com.blog.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface DataDict {

    /**
     * 字典编码
     * @return
     */
    String dictDataSource();

    /**
     * 默认返回前端的翻译后的key
     * @return
     */
    String dictText() default "";


}
